package org.chen.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("comment_field_pattern")
public class CommentFieldPattern extends Model<CommentFieldPattern> {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("field_type")
    private String fieldType;
    private String pattern;
    private String description;
    @TableField("is_enabled")
    private Boolean isEnabled;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("update_time")
    private LocalDateTime updateTime;
}